package aures.plugins;

import org.python.core.PyFunction;
import org.python.core.PyObject;

public class Hook {

	private PyFunction function;
	
	public Hook(PyFunction function){
		this.function = function;
	}
	
	public void run (){
		this.function.__call__();
	}
	
	public void run (PyObject arg0){
		this.function.__call__(arg0);
	}

	public PyFunction getFunction() {
		return function;
	}
}
